Rigorous Software Development -spring 2013
نویسنده
چکیده
/*@ public normal_behavior @ requires !isEmpty(); @ ensures \old(queue).has(\result) && @ queue.equals(\old(queue).remove(\result)) && @ (\forall Comparable o; queue.has(o); @ \result.compareTo(o) <= 0); @ modifies queue; @*/ public Comparable removeFirst() { Comparable first = elems[0]; Comparable last = elems[--numElems]; int pos = 0; int child = 1; while (child < numElems) { if (child + 1 < numElems && elems[child].compareTo(elems[child+1]) < 0) { child++; } if (elems[child].compareTo(last) < 0) break; elems[pos] = elems[child]; pos = child; child = 2*pos; } elems[pos] = last; //@ set ghostQueue = ghostQueue.remove(first); return first; }
منابع مشابه
Verification mechanism for lightweight componenent-based environment based on IoC container
This paper presents a concept of component verification framework dedicated to a particular lightweight component environment. The starting point of the paper constitutes a discussion about the significance of verification of syntax inconsistencies in software development. Next, the need of verification in serviceoriented and component-based systems is presented, and various approaches of verif...
متن کاملFlexible dependency injection with XML annotation- based configuration styles Advanced support for aspect-oriented programming with proxy-based and AspectJ-based variants. First-class support for common open source frameworks such as Hibernate and Quartz A flexible web framework for building RESTful MVC
Spring is the most popular application development framework for enterprise Java. Millions of developers around the world use Spring Framework to create high performing, easily testable, reusable code. Spring framework is an open source Java platform and it was initially written by Rod Johnson and was first released under the Apache 2.0 license in June 2003. Spring is lightweight when it comes ...
متن کاملIncorporation of Agile Development Methodology into a Capstone Software Engineering Project
This paper describes the author's experience in transitioning an undergraduate capstone software engineering project course from a traditional "waterfall" format to a modern agile development methodology. The agile approach replaces the sequential, and documentation-intensive, product development steps of the waterfall model--requirements analysis, system design, implementation, testing, and de...
متن کاملA Catalog of Aspect Refactorings for Spring/AOP
The importance of enterprise applications in current organizations makes it necessary to facilitate their maintenance and evolution along their life. These kind of systems are very complex and they have several requirements that orthogonally crosscut the system structure (called crosscutting concerns). Since many of the enterprise systems are developed with the Spring framework, can be taken ad...
متن کاملSoftware metrics a rigorous and practical approach pdf
Software Metrics: A Rigorous Practical Approach. Fenton and Shari Lawrence Pfleeger, International Thomson Computer.Software Metrics: A Rigorous and Practical Approach, Third Edition Chapman HallCRC Innovations in Software Engineering and Software Development. Download Software Metrics: A Rigorous and Practical Approach, Third. You can download this book in PDF version for FREE at http:bit.ly.W...
متن کامل